package com.ruoyi.quantization.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.quantization.mapper.SysMoralityGlMapper;
import com.ruoyi.quantization.domain.SysMoralityGl;
import com.ruoyi.quantization.service.ISysMoralityGlService;

/**
 * 品德（详情）Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-02
 */
@Service
public class SysMoralityGlServiceImpl implements ISysMoralityGlService 
{
    @Autowired
    private SysMoralityGlMapper sysMoralityGlMapper;

    /**
     * 查询品德（详情）
     * 
     * @param moralityId 品德（详情）主键
     * @return 品德（详情）
     */
    @Override
    public SysMoralityGl selectSysMoralityGlByMoralityId(Long moralityId)
    {
        return sysMoralityGlMapper.selectSysMoralityGlByMoralityId(moralityId);
    }

    /**
     * 查询品德（详情）列表
     * 
     * @param sysMoralityGl 品德（详情）
     * @return 品德（详情）
     */
    @Override
    public List<SysMoralityGl> selectSysMoralityGlList(SysMoralityGl sysMoralityGl)
    {
        return sysMoralityGlMapper.selectSysMoralityGlList(sysMoralityGl);
    }

    /**
     * 新增品德（详情）
     * 
     * @param sysMoralityGl 品德（详情）
     * @return 结果
     */
    @Override
    public int insertSysMoralityGl(SysMoralityGl sysMoralityGl)
    {
        return sysMoralityGlMapper.insertSysMoralityGl(sysMoralityGl);
    }

    /**
     * 修改品德（详情）
     * 
     * @param sysMoralityGl 品德（详情）
     * @return 结果
     */
    @Override
    public int updateSysMoralityGl(SysMoralityGl sysMoralityGl)
    {
        return sysMoralityGlMapper.updateSysMoralityGl(sysMoralityGl);
    }

    /**
     * 批量删除品德（详情）
     * 
     * @param moralityIds 需要删除的品德（详情）主键
     * @return 结果
     */
    @Override
    public int deleteSysMoralityGlByMoralityIds(Long[] moralityIds)
    {
        return sysMoralityGlMapper.deleteSysMoralityGlByMoralityIds(moralityIds);
    }

    /**
     * 删除品德（详情）信息
     * 
     * @param moralityId 品德（详情）主键
     * @return 结果
     */
    @Override
    public int deleteSysMoralityGlByMoralityId(Long moralityId)
    {
        return sysMoralityGlMapper.deleteSysMoralityGlByMoralityId(moralityId);
    }
}
